package org.com.creationalPattern.factory;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/14 10:54
 */
public class FactoryMethodDemo {
    public static void main(String[] args) {
        Creator creator=new ConcreteCreator();
        Product product=creator.factory(ConcreteProduct.class);

        product.method1();
        product.method2();
        /**
         * 具体实现方法
         */
    }
}
